/**
 *  处理所有post请求
 *  Created by lihao on 2018.02.06
 */
const order = require('../work/order')
const user = require('../work/user')
const POST_API = function(req, res, next) {
  switch (req.url) {
    case '/getList':
      order.getList(req, res)
      break
    case '/login' :
      user.login(req, res)
      break
  }
}

module.exports = POST_API
